package test;

import cn.kgc.blog.dao.UserMapper;
import cn.kgc.blog.pojo.User;
import org.junit.Test;

import javax.annotation.Resource;

public class test{
    @Resource
    private UserMapper userMapper;

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Test
    public void test01(){
        User aaa = userMapper.login("test2", "000000");
        System.out.println(aaa);
    }
}
